package com.tjetc.service;



import com.tjetc.domain.dto.OrderDTO;
import com.tjetc.domain.po.Orders;
import com.tjetc.domain.vo.BackVO;
import com.tjetc.domain.vo.OrderVo;
import com.tjetc.utils.PageBean;

import java.util.List;

/**
 * 订单管理Service接口
 * 
 * @author ruoyi
 * @date 2024-07-09
 */
public interface IOrdersService 
{


    public Long insertOrders(OrderDTO orderDTO);


    Orders selectByOrderNo(String orderNo);

    void updateById(Orders orders);

    List<Orders> findUnpaidOrdersOver30Minutes();

    String cancelOrder(OrderVo orderVo);

    String backMoney(Orders orders);

    BackVO findStartTime(String orderNo);

    PageBean<OrderVo> list(Integer pageNum, Integer pageSize, String status, String startTime, String endTime, Integer userId);

    Orders findById(Integer id);

    void finishOrder(Orders order);

    List<Orders> findPaidOrdersOverStart();

    Long sale(OrderDTO orderDTO);




}
